﻿using System.ComponentModel;

namespace Jinjia.Approve.Common.Enum
{
    public class EnumDb
    {
        public enum JJFlowNodeTypeEnum
        {
            [Description("起点")] StartNode = 0,
            [Description("条件节点")] CondNode = 1,
            [Description("正常节点")] UserTaskNode = 2,
            [Description("终点")] EndNode = 99,
        }

        /// <summary>
        /// 流程顺序条件
        /// </summary>
        public enum JJFlowSequenceConditionTypeEnum
        {
            [Description("无")] Nothing = 0,

            /// <summary>
            /// 表达式
            /// </summary>
            [Description("表达式")] Expression = 1,

            /// <summary>
            /// 方法
            /// </summary>
            [Description("方法")] Function = 2,

            /// <summary>
            /// 远程方法
            /// </summary>
            [Description("远程方法")] RemoteFunction = 3
        }

        public enum JJFlowOperationTypeEnum
        {
            [Description("审批通过")] Approve = 0,
            [Description("拒绝")] Reject = 1,
            [Description("发起")] Start = 99,
        }

        /// <summary>
        /// 节点会签
        /// </summary>
        public enum JJFlowNodeEmpTypeEnum
        {
            /// <summary>
            /// 或签
            /// </summary>
            [Description("或签")] OrNode = 0,

            /// <summary>
            /// 会签
            /// </summary>
            [Description("会签")] AndNode = 1
        }

        /// <summary>
        /// 节点按钮
        /// </summary>
        public enum JJFlowNodeActionTypeEnum
        {
            /// <summary>
            /// 退回
            /// </summary>
            [Description("退回")] Back = 1
        }

        /// <summary>
        /// 节点人员方式
        /// </summary>
        public enum JJFlowNodeRoleTypeEnum
        {
            /// <summary>
            /// 指定人员
            /// </summary>
            [Description("指定人员")] User = 1,

            /// <summary>
            /// 角色
            /// </summary>
            [Description("角色")] Role = 2,

            /// <summary>
            /// 组织架构
            /// </summary>
            [Description("组织架构")] Organizational = 3,

            /// <summary>
            /// 方法
            /// </summary>
            [Description("方法")] Function = 4,

            /// <summary>
            /// 远程方法
            /// </summary>
            [Description("远程方法")] RemoteFunction = 5
        }
    }
}